Function: FigureCallback

CALL:

FigureCallback(event)

DESCRIPTION:

Callback called by a MatlabServer object for generating a Matlab figure as response

INPUT:

event modelit.webserver.HttpExchange
with the request data and methods to generate a response.

OUTPUT:

      No output
 

EXAMPLE:

   server = modelit.web.server.Server('localhost', 8081, @FigureCallback).start() 
 
   % Open a webbrowser and type: http://localhost:8081 in the address bar
   % Now a figure with the Matlab logo appears in the browser.